﻿using System;
using Terraria.Localization;

namespace Terraria.ModLoader.UI
{
	// Token: 0x02000295 RID: 661
	public static class ModBrowserSortModesExtensions
	{
		// Token: 0x06001AB6 RID: 6838 RVA: 0x0042B428 File Offset: 0x00429628
		public static string ToFriendlyString(this ModBrowserSortMode sortmode)
		{
			switch (sortmode)
			{
			case ModBrowserSortMode.DisplayNameAtoZ:
				return Language.GetTextValue("tModLoader.ModsSortNamesAlph");
			case ModBrowserSortMode.DisplayNameZtoA:
				return Language.GetTextValue("tModLoader.ModsSortNamesReverseAlph");
			case ModBrowserSortMode.DownloadsDescending:
				return Language.GetTextValue("tModLoader.MBSortDownloadDesc");
			case ModBrowserSortMode.DownloadsAscending:
				return Language.GetTextValue("tModLoader.MBSortDownloadAsc");
			case ModBrowserSortMode.RecentlyUpdated:
				return Language.GetTextValue("tModLoader.MBSortByRecentlyUpdated");
			case ModBrowserSortMode.Hot:
				return Language.GetTextValue("tModLoader.MBSortByPopularity");
			default:
				return "Unknown Sort";
			}
		}
	}
}
